package com.feng.system.dto;

import com.feng.common.validation.groups.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Feng
 * @since 2022/4/20 18:27
 */
@Data
public class PermissionParam {

    @NotNull(message = "权限ID不能为空", groups = Update.class)
    @ApiModelProperty("ID")
    Long id;

    @NotBlank(message = "权限名不能为空")
    @ApiModelProperty("权限名")
    String name;

    @NotBlank(message = "权限key不能为空")
    @ApiModelProperty("权限key")
    String key;
}
